projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a15e93
)
[IA64] Fix dom0vp_expose_p2m()
author
Alex Williamson
<alex.williamson@hp.com>
Fri, 15 Jun 2007 18:38:35 +0000
(12:38 -0600)
committer
Alex Williamson
<alex.williamson@hp.com>
Fri, 15 Jun 2007 18:38:35 +0000
(12:38 -0600)
It exposes one more zero p2m page
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/mm.c
patch
|
blob
|
history
diff --git
a/xen/arch/ia64/xen/mm.c
b/xen/arch/ia64/xen/mm.c
index 8f91c0c252e46f6dbf48a58618f2e6df7a8890de..efe519b1b981c8ffb1c6d9d253f0e3f0c1ce05bc 100644
(file)
--- a/
xen/arch/ia64/xen/mm.c
+++ b/
xen/arch/ia64/xen/mm.c
@@
-1551,7
+1551,7
@@
dom0vp_expose_p2m(struct domain* d,
}
// expose p2m_pte_zero_page
- for (i = 0; i <
expose_num_pfn / PTRS_PER_PTE + 1
; i++) {
+ for (i = 0; i <
(expose_num_pfn + PTRS_PER_PTE - 1) / PTRS_PER_PTE
; i++) {
assign_pte = lookup_noalloc_domain_pte(d, (assign_start_gpfn + i) <<
PAGE_SHIFT);
if (assign_pte == NULL || pte_present(*assign_pte))